package xyz.yudan.app.util;
import java.util.Date;
import java.util.UUID;

/**
 * Created by gamy on 2018/4/6.
 */
public class YDUtil {
    final static public String getUUID()
    {
        return UUID.randomUUID().toString().replace("-", "");
    }

    final static public int getTimestamp()
    {
        return (int) (new Date().getTime()/1000);
    }

    final static public boolean stringIsNotEmpty(String string)
    {
        return string != null && string.length() != 0;
    }
}
